package com.example.myapplication.presenter;

import com.example.myapplication.base.BasePresenter;
import com.example.myapplication.bean.NavigationBean;
import com.example.myapplication.model.NavigationModel;
import com.example.myapplication.net.ResultCallBack;
import com.example.myapplication.view.NavigationView;

public class NavigationPresenter  extends BasePresenter<NavigationView> {

    private NavigationModel navigationModel;

    @Override
    protected void initModel() {
        navigationModel = new NavigationModel();
        addModel(navigationModel);
    }

    public void getNavigationData() {
        navigationModel.getNavigationData(new ResultCallBack<NavigationBean>() {
            @Override
            public void onSuccess(NavigationBean navigationBean) {
                mView.setData(navigationBean);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }
}
